///*
// * To change this template, choose Tools | Templates
// * and open the template in the editor.
// */
//
//package name.huliqing.qfaces.facelets;
//
//import com.sun.facelets.FaceletContext;
//import com.sun.facelets.tag.TagAttribute;
//import com.sun.facelets.tag.jsf.ComponentConfig;
//import com.sun.facelets.tag.jsf.ComponentHandler;
//import javax.el.MethodExpression;
//import javax.faces.component.UIComponent;
//import name.huliqing.qfaces.component.FileUpload;
//
///**
// * 
// * @author huliqing
// */
//public class FileUploadHandler extends ComponentHandler{
//
//    private TagAttribute process;
//
//    public FileUploadHandler(ComponentConfig cfg) {
//        super(cfg);
//        try {
//            this.process = cfg.getTag().getAttributes().get("process");
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//    }
//
//    @Override
//    protected void onComponentCreated(FaceletContext fc, UIComponent ui, UIComponent parent) {
//        super.onComponentCreated(fc, ui, parent);
//        if (this.process != null) {
//            FileUpload fu = (FileUpload) ui;
//            MethodExpression me = this.process.getMethodExpression(fc,
//                    Boolean.class,
//                    new Class[]{name.huliqing.qfaces.model.QFile.class});
//            fu.setProcess(me);
//        }
//    }
//}
